/*
 * SearchEndFileDate.java Created on 06-Sep-2004 Copyright 2004 Paul Mukherjee
 *
 * $Revision: 1.1 $
 */
package org.nanhill.support.hibernate.search.demo.filesearch;

import org.nanhill.commons.pattern.search.SearchException;

/**
 * @author pmu
 * 
 */
public class SearchEndFileDate extends SearchDate {

	public SearchEndFileDate() {

	}

	@Override
	protected void accept(VolumeSearchVisitor visitor) throws SearchException {
		visitor.visitEndFileDate(this);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.mukherjee.archivedb.pd.search.SearchDate#getDefaultDay()
	 */
	protected String getDefaultDay() {
		return "31";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.mukherjee.archivedb.pd.search.SearchDate#getDefaultMonth()
	 */
	protected String getDefaultMonth() {
		return "12";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.mukherjee.archivedb.pd.search.ISearchCriterion#getDisplay()
	 */
	public String getDisplay() {
		return "File End Date";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.mukherjee.archivedb.pd.search.ISearchCriterion#getName()
	 */
	public String getName() {
		return "File.endDate";
	}

}
